<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>
            导入设备数据 【{$Think.get.type}】
            <button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;"><i class="glyphicon glyphicon-share-alt"></i> 返 回</button>
        </h2>
    </div>
    <form action="" method="post" class="form">
        
        <div class="form-item form-group">
            <label class="item-label">导入数据<span class="check-tips">(一行一个, 大的在前, 小的在后)</span></label>
            <div class="controls">
                <textarea name="content" class="form-control input-large" rows="10"></textarea>
            </div>
        </div>
         
        <div class="form-item form-group form-action">
            <input type="hidden" name="type" value="{$Think.get.type}">
            <button class="btn submit-btn ajax-post btn-success btn-block" id="submit" type="submit" target-form="form">确 定 导 入</button>
            <!-- <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button> -->
        </div>
    </form>

    <form action="{:U('set_score')}" method="post" class="form_score">
         
        <div class="form-item form-group">
            <label class="item-label">设置分值<span class="check-tips">(请使用一行一个配置, 配置的数值不能重复, 并且从小到大设置. 按如下 key:score key为上面导入的数据中的一项, score为0-100的整数)</span></label>
            <div class="controls">
                <textarea name="config" class="form-control input-large" rows="10">{$config.config}</textarea>
            </div>
        </div>
         
        <div class="form-item form-group form-action">
            <input type="hidden" name="type" value="{$Think.get.type}">
            <button class="btn submit-btn ajax-post btn-success btn-block" id="submit" type="submit" target-form="form_score">确 定 设 置</button>
            <!-- <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button> -->
        </div>
    </form>

    <form action="{:U('test')}" method="post" class="form_test">
         
        <div class="form-item form-group">
            <label class="item-label">测试<span class="check-tips">(填写一个型号, 请获取他的分值)</span></label>
            <div class="controls">
                <input type="text" class="form-control input-large" name="key">
            </div>
        </div>
         
        <div class="form-item form-group form-action">
            <input type="hidden" name="type" value="{$Think.get.type}">
            <button class="btn submit-btn ajax-post btn-success btn-block" id="submit" type="submit" target-form="form_test">开 始 测 试</button>
            <!-- <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button> -->
        </div>
    </form>
    <notempty name="lists">
        <div class="form-item form-group">
            <label class="item-label">原数据<span class="check-tips"></span></label>
            <div class="controls">
                <ul>
                <volist name="lists" id="vo">
                <li>{$key}
                <notempty name="config['rate'][$vo]">
                    ===> <font color="red">{$config['rate'][$vo]}</font>
                </notempty>
                </li>
                </volist>
                </ul>
            </div>
        </div>
        </notempty>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Game/index')}');
    </script>
</block>
